home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-29 | 7.0 KB | 181 lines | [TEXT/MPS ] |
- ; Version: 3.16
- ; Created: Friday, October 20, 1989 at 9:44:53 PM
- ;
- ; File: ROMEqu.a
- ;
- ; Assembler Interface to the Macintosh Libraries
- ; Copyright Apple Computer, Inc. 1986-1991
- ; All Rights Reserved
- ;
- ; Description : This file contains the CONST definitions used by the
- ; Slot Manager and Declaration ROM's
- ;
- ;------------------------------------------------------------------------
-
- IF &TYPE('__IncludingROMEqu__') = 'UNDEFINED' THEN
- __IncludingROMEqu__ SET 1
-
- ;*********************************************************************
- ; Constants
- ;*********************************************************************
-
- ;=====================================================================
- ;Misc.
- ;=====================================================================
- defaultTO EQU 100
- ;=====================================================================
- ;Format-Header
- ;=====================================================================
- appleFormat EQU 1 ;Format of Declaration Data (IEEE will assign real value)
- romRevision EQU 1 ;First ROM revision.
- romRevRange EQU 9 ;Revision of Declaration Data Format [1..9]
- testPattern EQU 1519594439 ;FHeader long word test pattern
- ;=====================================================================
- ;sExec constants
- ;=====================================================================
- sExec2 EQU 2 ;Revision of header {For sExec}.
- ;=====================================================================
- ;sExec constants
- ;=====================================================================
- sCPU68000 EQU 1 ;CPU type = 68000
- sCPU68020 EQU 2 ;CPU type = 68020
- sCPU68030 EQU 3 ;CPU type = 68030 <1.3>
- sCPU68040 EQU 4 ;CPU type = 68040 <1.4>
-
- ;=====================================================================
- ;sDRVR directory constants
- ;=====================================================================
- sMacOS68000 EQU 1 ;Mac OS, CPU type = 68000
- sMacOS68020 EQU 2 ;Mac OS, CPU type = 68020
- sMacOS68030 EQU 3 ;Mac OS, CPU type = 68030 <1.3>
- sMacOS68040 EQU 4 ;Mac OS, CPU type = 68040 <1.4>
-
-
- ;=====================================================================
- ;sResource types
- ;=====================================================================
-
- ;<Category>
- catBoard EQU $0001 ; <1.3>
- catTest EQU $0002 ; <1.3>
- catDisplay EQU $0003 ; <1.3>
- catNetwork EQU $0004 ; <1.3>
- CatCPU EQU $000A ; <1.3>
-
- ;<Type>
- typBoard EQU $0000 ; <1.3>
- typApple EQU $0001 ; <1.3>
- typVideo EQU $0001 ; <1.3>
- typEtherNet EQU $0001 ; <1.3>
-
- Typ68000 EQU $0002 ; <1.3>
- Typ68020 EQU $0003 ; <1.3>
- Typ68030 EQU $0004 ; <1.3>
- Typ68040 EQU $0005 ; <1.4>
-
- ;Driver Interface : <id.SW>
- DrSwMacCPU EQU 0 ; <1.3>
- drSwApple EQU 1 ; <1.3>
-
- ;Driver Interface : <id.SW><id.WH>
- drHwTFB EQU 1
- drHw3Com EQU 1
- drHwBSC EQU 3
-
-
- ;=====================================================================
- ;Declaration ROM Id's
- ;=====================================================================
- ;---------------------------------------------------------------------
- ; Misc
- ;---------------------------------------------------------------------
- endOfList EQU 255 ;End of list
-
-
- ;---------------------------------------------------------------------
- ; sResource List. Category: All
- ;---------------------------------------------------------------------
- ;The following Id's are common to all sResources.
- sRsrcType EQU 1 ;Type of sResource
- sRsrcName EQU 2 ;Name of sResource
- sRsrcIcon EQU 3 ;Icon
- sRsrcDrvrDir EQU 4 ;Driver directory
- sRsrcLoadRec EQU 5 ;Load record
- sRsrcBootRec EQU 6 ;sBoot record
- sRsrcFlags EQU 7 ;sResource Flags
- sRsrcHWDevId EQU 8 ;Hardware Device Id
- minorBaseOS EQU 10 ;Offset to base of sResource in minor space.
- minorLength EQU 11
- majorBaseOS EQU 12 ;Offset to base of sResource in Major space
- majorLength EQU 13
- sRsrcTest EQU 14 ; sBlock diagnostic code
- sRsrcCIcon EQU 15 ; CQD color icon
- sRsrcIcl8 EQU 16 ; 'icl8' 8-bit color icon data
- sRsrcIcl4 EQU 17 ; 'icl4' 4-bit color icon data
-
- sGammaDir EQU 64 ; spID for gamma directory
- sRsrcVidNames EQU 65 ; spID for video name directory
-
- ;---------------------------------------------------------------------
- ; sResource List. Category: Board
- ;---------------------------------------------------------------------
- ;The following Id's are common to all Board sResources.
- boardId EQU 32 ;Board Id
- pRAMInitData EQU 33 ;sPRAM init data
- primaryInit EQU 34 ;Primary init record
- timeOutConst EQU 35 ;Time Out constant.
- vendorInfo EQU 36 ;Vendor information List {See Vendor List, below}
- boardFlags EQU 37 ;Board Flags
- secondaryInit EQU 38 ;Secondary init record <1.1>
-
- ;---------------------------------------------------------------------
- ; sResource List. Category: Board
- ;---------------------------------------------------------------------
- ;The following Id's are associated with all CPU sResources.
- MajRAMSp EQU 129 ;ID of Major RAM space.
- MinROMSp EQU 130 ;ID of Minor ROM space.
-
-
- ;---------------------------------------------------------------------
- ;Vendor List
- ;---------------------------------------------------------------------
- ;The following Id's are associated with the VendorInfo id
- vendorId EQU 1 ;Vendor Id
- serialNum EQU 2 ;Serial number
- revLevel EQU 3 ;Revision level
- partNum EQU 4 ;Part number
- Date EQU 5 ;ID of date field in vendor info list.
-
-
- ;---------------------------------------------------------------------
- ; sResource List. Category_Type: Test_One
- ;---------------------------------------------------------------------
- ;The following Id's are common to all Test_One_x sResources.
- testByte EQU 32 ;Test byte.
- testWord EQU 33 ;Test Word.
- testLong EQU 34 ;Test Long.
- testString EQU 35 ;Test String.
-
-
-
- ;*************************************************************
- ;Macros
- ;*************************************************************
- ;=============================================================
- ; Offset List Entry
- ;=============================================================
- MACRO
- OSLstEntry &Id,&Offset
- DC.L (&Id<<24)++((&Offset-*)**$00FFFFFF)
- ENDM
-
-
- ;=============================================================
- ; Data List Entry
- ;=============================================================
- MACRO
- DatLstEntry &Id,&Data
- DC.L (&Id<<24)+&Data
- ENDM
-
- ENDIF ; ...already included